import 'package:get/get.dart';
import 'package:intl/intl.dart';

class GetxControllerPageController extends GetxController {
  //TODO: Implement GetxControllerPageController

  final lifeStr = "".obs;

  @override
  void onInit() {
    super.onInit();
    lifeStr.value = "${lifeStr.value}\n${DateFormat('yyyy-MM-dd HH:mm:ss').format(DateTime.now())}-----> onInit";
    print("lifecyle = -----> onInit");
  }

  @override
  void onReady() {
    super.onReady();
    lifeStr.value = "${lifeStr.value}\n${DateFormat('yyyy-MM-dd HH:mm:ss').format(DateTime.now())}-----> onReady";
    print("lifecyle = -----> onReady");
  }

  @override
  void onClose() {
    super.onClose();
    lifeStr.value = "${lifeStr.value}\n${DateFormat('yyyy-MM-dd HH:mm:ss').format(DateTime.now())}-----> onClose";
    print("lifecyle = -----> onClose");
  }


}
